<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    {load href="/static/css/bootstrap.min.css" /}
    <style type="text/css">
        .row{margin-top:300px;}
    </style>
</head>
<body>
<div class="container">
     <div class="row">
    {if condition="($Think.session.id == null)"}
         <p><h3>管理员登录</h3></p>
         <br/>
         <br/>
         <br/>
        <form action="{:url('admin/Index/index')}" method="post">
            <div class="form-group">
                <label for="name">用户名</label>
                <input type="text" class="form-control" name="username" placeholder="用户名">
            </div>
            <div class="form-group">
                <label for="name">密码</label>
                <input type="password" class="form-control" name="password">
            </div>
            <input type="hidden" name="_method" value="PUT" >
            <button type="submit" class="btn btn-default">提交</button>
        </form>
    {else /}
        <p><a href="{:url('admin/Single/add')}">新建选择题</a></p>
        <p><a href="{:url('admin/Fillblank/add')}">新建填空题</a></p>
        <p><a href="{:url('admin/Judge/add')}">新建判断题</a></p>
        <p><a href="{:url('admin/Shortanswer/add')}">新建简答题</a></p>
        <p><a href="{:url('admin/Question/qlist')}">试题库</a></p>
        <p><a href="{:url('admin/Paper/add')}">创建试卷</a></p>
    {/if}   
    </div>
</div>
</body>
</html>